class mat
{
	public static void main(String[] args)
	{
		int [][] mat1={
				 {1,2,3},
				 {4,5,6}
				};
		int [][] mat2={
				 {2,1,4},
				 {3,6,5}
				};
		int [][] mat3=new int[2][3];
		//int i,j;
		for(int i=0;i<2;i++)
		    for(int j=0;j<3;j++)
		    {
			//int [][] mat3=new int[2][3];
			mat3[i][j]=mat1[i][j]+mat2[i][j];
		    }
		System.out.println("addition of two matrix");    
		for(i=0;i<2;i++)
		 System.out.println();
		    for(j=0;j<3;j++)
			
			System.out.println(" "+mat3[i][j]+" ");
			
	}
}